pp108 : addLibraryPackage() Method

addLibraryPackage() Method


This method adds a library package to the system.

Syntax

HTML

system.addLibraryPackage(url)


Parameters

Parameter

Description

url

url of the library package.


Remarks


A library package can also be generated using the Library Packager, a tool used to package library files. The use of library packages reduces network trips and improves performance where network latencies such as dial-up connections are involved.

Example

//adding new library package
function addNewpackage() 
{
    //assuming newpackage.htm is created using Library Packager and its placed in the Virtual Directory newpackage
    var bLibPackage = system.addLibraryPackage("/newpackage/newpackage.htm");
    if (! bLibPackage ) CordysRoot.application.notify("Unable to load the library package.");
}

See Also


System